<template>
    <div>
      <el-menu :default-active="active" class="menuBox" active-text-color="red">
      <el-submenu index="1" >
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>导航一</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="1-1">选项1</el-menu-item>
          <el-menu-item index="1-2">选项2</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-menu-item index="2" >
        <i class="el-icon-menu"></i>
        <span slot="title">导航二</span>
      </el-menu-item>
    </el-menu>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                active: '1'
            }
        },
    }
</script>

<style lang="scss" scoped>
.menuBox{
    width: 220px;
}
.menuBox .el-menu-item{
      height:45px;
      line-height: 45px;
    }
</style>
<style lang="scss">
 .menuBox .el-submenu__title{
  height:45px;
  line-height: 45px;
 }
</style>